<?php echo link_to(image_tag('icons/add2.png'),'inventario/create') ?>
<strong><?php echo $articuloList->getNbResults() ?></strong> Productos en el Inventario
<table class="lista">
  <thead>
    <tr>
      <th>Id</th>
      <th>Img</th>
      <th>Cod</th>
      <th>Descripcion</th>
      <th>Prov</th>
      <th>Cat</th>      
      <th>%Desc</th>            
      <th>Exst</th>
      <th>Cost</th>
      <th>Rer</th>
      <th>TE</th>
      <th>FC</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($articuloList->getResults() as $articulo): ?>
    <tr>
      <?php if($sf_user->hasCredential('Administrar Inventario')): ?>
        <td><?php echo link_to(image_tag('icons/edit.png'),'inventario/edit?id='.$articulo->getId()).link_to(image_tag('icons/delete.png'),'inventario/delete?id='.$articulo->getId())?></td>
      <?php else: ?>
        <td></td>
      <?php endif; ?>
      <td><?php echo image_tag('fotos/'.$articulo->getFoto(),array("width"=>"32") ) ?></td>
      <td><?php echo link_to($articulo->getCodigo(),'inventario/edit?id='.$articulo->getId()) ?></td>
      <td><?php echo $articulo->getDescripcion() ?></td>
      <td><?php echo $articulo->getProveedorId() ?></td>
      <td><?php echo $articulo->getDescuentoId() ?></td>
      <td><?php echo $articulo->getCategoriaId() ?></td>
      <td><?php echo $articulo->getExistencia() ?></td>
      <td><?php echo $articulo->getCosto() ?></td>
      <td><?php echo $articulo->getReorden() ?></td>
      <td><?php echo $articulo->getTiempoEntrega() ?></td>
      <td><?php echo $articulo->getFechaCompra() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>
Página <?php if ( $articuloList->haveToPaginate() ): ?>
          <?php echo link_to('&laquo', 'inventario/index?list=all&page='.$articuloList->getFirstPage()) ?>
          <?php echo link_to('&lt;', 'inventario/index?list=all&page='.$articuloList->getPreviousPage()) ?>
          <?php $links = $articuloList->getLinks(); foreach ($links as $page): ?>
            <?php echo ($page == $articuloList->getPage()) ? $page : link_to($page, 'inventario/index?list=all&page='.$page) ?>
            <?php if ($page != $articuloList->getCurrentMaxLink()): ?> - <?php endif ?>
          <?php endforeach ?>
          <?php echo link_to('&gt;', 'inventario/index?list=all&page='.$articuloList->getNextPage()) ?>
          <?php echo link_to('&raquo;', 'inventario/index?list=all&page='.$articuloList->getLastPage()) ?>        
       <?  endif ?>
